import React from 'react'
import './index.scss'
export default function Index(props) {
  return (
    <div className="top">
      <div className="left-icon">
        {props.leftIcon ? (
          <img
            className="icon"
            src={require(`./../../image/icon/Home/${props.leftIcon}.png`)}
          />
        ) : (
          ''
        )}
      </div>
      <span>{props.title}</span>
      <div className="right-icon">
        {props.rightIcon ? (
          <img
            className="icon"
            src={require(`./../../image/icon/Home/${props.rightIcon}.png`)}
          />
        ) : (
          ''
        )}
      </div>
    </div>
  )
}
